package com.cn.algorithm01;

import java.util.HashMap;
import java.util.TreeMap;

/**
 * @author hels
 * @version 1.0
 * @date 2021/10/12 17:32
 * 哈希映射和树映射
 */
public class Code06_HashMapTreeMap {
    public static void main(String[] args) {
        HashMap<String, String> hashMap = new HashMap<String, String>();
        hashMap.put("10", "左神");
        hashMap.put("6", "做成云");
        hashMap.put("3", "做成云");
        hashMap.put("4", "做成云");
        hashMap.put("5", "做成云");
        System.out.println(hashMap);

        TreeMap<String, String> treeMap = new TreeMap<String, String>();
        treeMap.put("10", "左神");
        treeMap.put("6", "做成云");
        treeMap.put("3", "做成云");
        treeMap.put("4", "做成云");
        treeMap.put("5", "做成云");
        System.out.println(treeMap);

    }
}
